package com.care.dao.admin;

import java.util.List;

import com.care.entity.Doctor;
import com.care.entity.Knowledge;
import com.care.entity.User;


public interface AdminDao {
	public boolean addUser(User user);//添加用户
	public boolean addDoctor(Doctor doctor);//添加医生
	public boolean addKnowledge(Knowledge knowledge);//添加医护知识
	
	public void delUser(User user);//删除用户
	public void delDoctor(Doctor doctor);//删除医生
	public void delKnowledge(Knowledge knowledge);//删除医护知识
	
	public User selUser(String name);//查询用户
	public Doctor selDoctor(String name);//查询医生
	public Knowledge selKnowledge(String name);//查询医护知识
	
	public int selCountUser();//查询数量用户
	public int selCountDoctor();//查询数量医生
	public int selCountKnowledge();//查询数量医护知识
	public List<User> selAllUser(int pageNum, int pageSize);//查询分页用户
	public List<Doctor> selAllDoctor(int pageNum, int pageSize);//查询分页医生
	public List<Knowledge> selAllKnowledge(int pageNum, int pageSize);//查询分页医护知识
	
	
	public boolean updUser(String name,String password, String img, String sex, double money,String email);//修改用户
	public boolean updDoctor(String name, String password, String sex, String information, double money, String section,String email);//修改医生
	public boolean updKnowledge(String name, String title, String content,Doctor doctor);//修改医护知识
}
